/* src/css/style.css */

/* Reset básico e fontes */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    font-family: Arial, sans-serif;
    background-color: #cde4ff !important;
    background: url('../img/cordeiro-leao.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garante que o body ocupe toda a altura da tela */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.statusbar-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 24px);
    background-color: #131b38;
    z-index: 999;
  }
    
.navigation-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: env(safe-area-inset-bottom, 24px);
    background-color: #131b38;
    z-index: 999;
  }

/* Header e Navegação */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90DEG, #131b38, #192039, #0088cc);
    color: white;
    padding: 10px 20px;
}


h1 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 25px;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
}

.menu-icon {
    display: none; /* Escondido por padrão em desktop */
    font-size: 2em;
    cursor: pointer;
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Itens em linha para desktop */
}

.menu-items li {
    margin-left: 20px;
}

.menu-items a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

.menu-items a:hover {
    background-color: #192039;
    border-radius: 4px;
}

/* Estilo para o botão de compartilhamento */
#share-mobile-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 1px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    /* Por padrão, o botão está OCULTO */
    display: none;
}

#share-mobile-btn:hover {
    background-color: #218838;
}

/* Media Query para Telas Menores (Dispositivos Mobile) */
@media (max-width: 768px) {
    .menu-icon {
        display: block; /* Mostra o ícone de hambúrguer */
    }

    .menu-items {
        display: none; /* Esconde os itens do menu por padrão */
        flex-direction: column;
        width: 100%;
        background: linear-gradient(90DEG, #131b38, #192039, #0088cc);
        position: absolute;
        top: 60px; /* Ajuste conforme a altura do seu header */
        left: 0;
        z-index: 1000;
        padding: 10px 0;
    }

    .menu-items.active {
        display: flex; /* Mostra os itens quando o menu está ativo */
    }

    .menu-items li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .menu-items a {
        display: block;
        padding: 10px 20px;
        border-bottom: 1px solid #555;
    }

    .menu-items li:last-child a {
        border-bottom: none;
    }

    /* Regra para EXIBIR o botão de compartilhamento apenas em telas menores */
    #share-mobile-btn {
        display: inline-block; /* <--- ESSA É A LINHA CHAVE: Altera para visível em mobile */
        /* 'block' se quiser que ele ocupe a largura total */
        /* 'inline-block' se ele for ficar ao lado de outros botões e manter o fluxo */
    }

    /* h1 { font-size: 23px;}
    h1.card-title { font-size: 22px;}
    h2.card-subtitle { font-size: 18px;}
    p.quote-text { font-size: 20px;} */
}

/* Main Content */
main {
    flex-grow: 1; /* Faz o main ocupar o espaço restante */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Card de Citação */
.quote-card {
    transition: all .5s ease-in-out;
    background-color: #cde4ff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.title {
    font-size: 1.4em;
}

.card-title {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 10px;
}

.card-subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 2.3em;
    margin-bottom: 20px;
    color: #ffc107; /* Cor amarela para o ícone */
}

.quote-text {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
    /*background-color: rgba(23, 25, 26, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(23, 25, 26, 0.1);
    padding: 12px 7px;*/
}

.quote-author {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 30px;
}

.card-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.card-actions button {
    width: auto;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 10px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    font-size: .8em;
    transition: background-color 0.3s ease;
}

.card-actions button:hover {
    background-color: #0056b3;
}

/* Ajustes para o botão de Compartilhar */
#share-quote-btn {
    background-color: #28a745; /* Verde para compartilhar */
}

#share-quote-btn:hover {
    background-color: #218838;
}

#versao-info {
    opacity: 0.5;
    font-size: 14px;
}

/* Footer (opcional) */
footer {
    background: linear-gradient(90DEG, #131b38, #192039, #0088cc);
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}
